package com.cl.service;

import com.cl.pojo.Department;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartmentService {
    List<Department> queryAll(int page,int limit);
    /**
     *
     * @param departmentname
     * @return
     */
    Department queryByDepartmentname(@Param("departmentname")String departmentname);


    int addDepartment(Department department);

    int updateDepartment(Department department);

    List<Department> queryByName(String name);

    int delById(int id);
}

